package com.qyer.lxp.model.product.normal;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;

/**
 * 销售详细信息的附加节点
 * Created by wangzhen on 16/5/18.
 */

@XmlRootElement(name = "additional-option")
@XmlAccessorType(XmlAccessType.FIELD)
public class SaleItemAdditionalOption implements Serializable{
    private static final long serialVersionUID = 2299530736223326143L;

    private int id;

    /**
     * 附加选项的code
     */
    @XmlElement(name = "option-code")
    private String optionCode;

    /**
     * 附加选项的名字
     */
    @XmlElement(name = "option-name")
    private String optionName;

    /**
     * 描述
     */
    @XmlElement(name = "desc")
    private String desc;

    /**
     * 价格
     */
    @XmlElement(name = "price")
    private String price;

    /**
     * 分组
     */
    @XmlElement(name = "group")
    private String group;

    /**
     * 单位(人/个/份)
     */
    @XmlElement(name = "unit")
    private String unit;

    /**
     * 最小购买数
     */
    @XmlElement(name = "min")
    private String min;

    /**
     * 最大购买数
     */
    @XmlElement(name = "max")
    private String max;


    private String saleCode;

    private String productCode;

    public String getOptionCode() {
        return optionCode;
    }

    public void setOptionCode(String optionCode) {
        this.optionCode = optionCode;
    }

    public String getOptionName() {
        return optionName;
    }

    public void setOptionName(String optionName) {
        this.optionName = optionName;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getMin() {
        return min;
    }

    public void setMin(String min) {
        this.min = min;
    }

    public String getMax() {
        return max;
    }

    public void setMax(String max) {
        this.max = max;
    }

    public String getSaleCode() {
        return saleCode;
    }

    public void setSaleCode(String saleCode) {
        this.saleCode = saleCode;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }
}
